Memory management best practices
When developing your Kanzi application consider the following memory management best practices:
- Enable memory mapped loading for your Kanzi application kzb files to significantly reduce the application loading time by decreasing the number of file accesses. See Using memory mapped loading.
- Memory management is essential for improving performance of your Kanzi applications. Kanzi has the following memory managers: system, pooled, and quick memory manager. See Using memory managers.
- A typical memory error is related to the pooled memory that was not freed properly at the end of the application lifetime. See Debugging application memory.
- Kanzi is not thread safe, because it uses non thread safe libraries like such as OpenGL, and contains subsystems that do not protect against concurrent access. However, it is possible to run Kanzi in multithreaded environments. See Running Kanzi applications in multithread environments.
- Reducing texture size has a direct effect on memory bandwidth. See Compressing textures and Adjusting the data size.
See also
Using memory mapped loading
Using memory managers
Running Kanzi applications in multithread environments
Debugging application memory
Compressing textures
Adjusting the data size
Measuring the performance of your Kanzi application
Best practices
Reference for application configuration
Open topic with navigation